import { action, observable } from 'mobx'
import { Detail , getRankDropList} from '../../services/index';
// import {DetailIten} from "../../utils/interface"
//,getRankDropList
class Article {
    @observable
    rankDataLis = []

    //京东自营 手机续航
    @observable
    rankDropList = []

    //下拉菜单
    @observable
    rankdrop = []



    @action
    async myDetail(str) {
        let arr = await Detail(str)
        this.rankDataLis = arr.data.rankDataList
    }

    @action
    async everyList(str) {
        let brr = await getRankDropList(str)
        //京东自营 手机续航
        this.rankDropList = brr.data.rankItemGroup
        //下拉菜单
        this.rankdrop = brr.data.dropList
    }
}
export default Article;